// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/efficiency/api/EnergyElectricApi'

import OneClass from '@api/efficiency/model/EnergyElectricDetailReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 单项 —————————————————————————————— //

  async getOne(one, TIP = '查询单项') {
    const DTO = CORE.grpcDTO(OneClass, { id: one.id })
    const resp = await CORE.grpc(TIP, CLIENT, 'energyElectricDetail', DTO)
    return resp.content || {}
  },
}
